@extends('layouts.default') @section('main')
    <link rel="stylesheet" href="/css/uniform.css"/>
    <link rel="stylesheet" href="/css/select2.css"/>
    <div id="content">
        <div id="content-header">
            <div id="breadcrumb">
                <a href="{{url('home')}}" title="返回首页" class="tip-bottom"><i class="icon-home"></i> 首页</a>
                <a href="#" class="current">路演申请管理</a></div>
        </div>
        <div class="container-fluid">
            <div class="row-fluid">
                <div class="span12">
                    <form action="{{url('roadshowapply/search')}}" method="post">
                        <table>
                            <tr>
                                <th>
                                    <label>所属空间名称 :</label>
                                </th>
                                <th>
                                    <div class="controls">
                                        <input type="text" class="span11" name="makername" value="" placeholder="所属空间名称"/>
                                    </div>
                                </th>
                                <th>
                                    <label>申请用户username :</label>
                                </th>
                                <th>
                                    <div class="controls">
                                        <input type="text" class="span11" name="username" value="" placeholder="申请用户username"/>
                                    </div>
                                </th>
                                <th>
                                    <label>发起类型 :</label>
                                </th>
                                <th>
                                    <div class="controls">
                                        <select name="initiator" class="span11">
                                            <option value="">请选择</option>
                                            <option value="project">项目方</option>
                                            <option value="maker">创客空间</option>
                                        </select>
                                    </div>
                                </th>
                                <th>
                                    <input type="hidden" name="_token" value="{{ csrf_token() }}">
                                    <div class="controls">
                                        <button type="submit" class="btn btn-info">查询</button>
                                    </div>
                                </th>
                            </tr>
                        </table>
                    </form>
                    <div class="widget-box">
                        <div class="widget-title"><span class="icon"><i class="icon-th"></i></span>
                            <h5>路演申请管理</h5>
                        </div>
                        <div class="widget-content nopadding">
                            <table class="table table-bordered table-striped">
                                <thead>
                                <tr>
                                    <th>所属空间</th>
                                    <th>申请用户</th>
                                    <th>发起类型</th>
                                    <th>申请时间</th>
                                    <th>关联的项目</th>
                                    <th>状态</th>
                                    <th>操作</th>
                                </tr>
                                </thead>
                                <tbody>
                                @foreach($lists as $key => $list)
                                    <tr class="gradeX">
                                        <td>{{$list->name}}</td>
                                        <td>{{$list->nickname?$list->nickname:$list->realname}}</td>
                                        <td>@if($list->initiator == 'maker')创客空间@elseif($list->initiator == 'project')项目方@endif</td>
                                        <td>{{date('Y-m-d H:i:s',$list->created_at)}}</td>
                                        <td><a href="{{ url('roadshowapply/project?id='.$list->id) }}">点击管理</a></td>
                                        <td>@if($list->status == 1)<i class="icon-ok"></i>@elseif($list->status == -1)<i class="icon-remove"></i>@elseif($list->status == 0)<i
                                                    class="icon-question-sign"></i>@endif</td>
                                        <td class="center">
                                            <a data-original-title="编辑" class="tip" href="{{url('roadshowapply/edit?id='.$list->id)}}"><i class="icon-pencil"></i></a>
                                        </td>
                                    </tr>
                                @endforeach
                                </tbody>
                            </table>
                        </div>
                    </div><?php echo $lists->render();?>
                </div>
            </div>
        </div>
    </div>
    <script src="/js/matrix.tables.js"></script>
@stop

